package test;

import jdk.nashorn.internal.ir.debug.ObjectSizeCalculator;

import java.io.IOException;

public class _100w_2_vs_2_100w {
    static int maxn = 1<<25;
    static byte[][] _2_maxn = new byte[2][maxn];
    static byte[][] _maxn_2 = new byte[maxn][2];

    public static void main(String[] args) throws IOException {
        System.out.println("2*" + maxn);
        System.out.println(ObjectSizeCalculator.getObjectSize(_2_maxn));        //80000056
        System.out.println(maxn + "*" + "2");
        System.out.println(ObjectSizeCalculator.getObjectSize(_maxn_2));        //280000016
    }
}
